home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
xceedzip
/
MAIN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1999-04-26
|
35KB
|
786 lines
unit Main;
{==================================================================}
{ Description: Getting Started Sample Application }
{ Copyright: ⌐ Copyright 1995-1999 Xceed Software Inc. }
{ All Rights Reserved. }
{==================================================================}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
OleCtrls, XceedZipLib_TLB, ComCtrls, StdCtrls, checklst;
const
{ Property hints }
cBasePathHint = 'BasePath property:' + #13#10 +
' This path determines where entries in the FilesToProcess and FilesToExclude' + #13#10 +
' properties are relative to. The base path never appears in the zip file, even if' + #13#10 +
' PreservePaths = True. Only the portion of the path and filename specified in' + #13#10 +
' the FilesToProcess property is actually stored in the zip file. Therefore,' + #13#10 +
' BasePath helps you control what portions of paths are stored in the zip file.' + #13#10 +
' (The BasePath property is irrelevant when you are using absolute paths)';
cFilesToProcessHint = 'FilesToProcess property:' + #13#10 +
' Multiline string that contains all the filenames and/or file masks to be' + #13#10 +
' processed (zipped, unzipped, etc). If you entered a path in the' + #13#10 +
' BasePath property, all entries with relative paths will be relative to' + #13#10 +
' the specified base path. The pipe character can be used instead of' + #13#10 +
' the linefeed to separate entries for the FilesToProcess property.';
cFilesToExcludeHint = 'FilesToExclude property:' + #13#10 +
' Multiline string that contains all filenames and/or file masks to exclude' + #13#10 +
' from the files to be processed by the FilesToProcess property. These' + #13#10 +
' entries are also relative to the path specified in the BasePath property' + #13#10 +
' if its not empty.';
cProcessSubfoldersHint = 'ProcessSubfolders property:' + #13#10 +
' If set to True, the contents of all encoutered subfolders will be processed.';
cZipFilenameHint = 'ZipFilename property:' + #13#10 +
' The filename of the zip file to work with. When unzipping, this file must' + #13#10 +
' exist. When zipping, if the file exists, it''s updated. Otherwise, it is' + #13#10 +
' created. You must enter an absolute path for this property. The' + #13#10 +
' BasePath property does not interfere with the ZipFilename property.';
cPreservePathsHint = 'PreservePaths property:' + #13#10 +
' If set to True, the zip file will store both the path and the filename of' + #13#10 +
' each file that is being zipped. As usual, the portion of a file''s path' + #13#10 +
' that is specified in the BasePath property will not be stored in the' + #13#10 +
' zip file. When PreservePaths is set to False, only filenames (no' + #13#10 +
' paths) are stored.';
cUseTempFileHint = 'UseTempFile property:' + #13#10 +
' If set to true, all zipping operations will be performed on a temp file' + #13#10 +
' located in the folder specified in the TempFolder property.' + #13#10 +
' Otherwise, the operation is performed directly on the zip file' + #13#10 +
' without using a temp file. You cannot remove files from an existing' + #13#10 +
' zip file, or update files already in an existing zip files without setting' + #13#10 +
' this property to True.';
cTempFolderHint = 'TempFolder property:' + #13#10 +
' Location of the temp file when the UseTempFile property is set to True.' + #13#10 +
' When you leave this property empty, the Windows default temp' + #13#10 +
' directory is used.';
cRequiredFileAttributesHint = 'RequiredFileAttributes property:' + #13#10 +
' Bit-field value that specifies all attributes that a file must have in' + #13#10 +
' order to be included in the process.';
cExcludedFileAttributesHint = 'ExcludedFileAttributes property:' + #13#10 +
' Bit-field value that specifies all attributes that a file must NOT have' + #13#10 +
' in order to be included in the process.';
cMinDateToProcessHint = 'MinDateToProcess property:' + #13#10 +
' Minimum value of a file''s ''Last modifed date'' required in order to be' + #13#10 +
' included in the process.';
cMaxDateToProcessHint = 'MaxDateToProcess property:' + #13#10 +
' Maximum value of a file''s ''Last modifed date'' required in order to be' + #13#10 +
' included in the process.';
cMinSizeToProcessHint = 'MinSizeToProcess property:' + #13#10 +
' Minimum file size that a file must have in order to be included in the process.';
cMaxSizeToProcessHint = 'MaxSizeToProcess property:' + #13#10 +
' Maximum file size that a file must have in order to be included in the process.';
cUnzipToFolderHint = 'UnzipToFolder property:' + #13#10 +
' Destination folder for files being unzipped. In this sample, the PreservePaths' + #13#10 +
' property is set to True, so if files are stored in the zip file with paths, those' + #13#10 +
' stored paths will be recreated inside the destination folder specified by the' + #13#10 +
' UnzipToFolder property.';
cSkipIfExistingHint = 'SkipIfExisting property:' + #13#10 +
' If the destination file (located in a zip file that is being updated, or' + #13#10 +
' on disk when a zip file is being unzipped) already exists, and this' + #13#10 +
' property is set to True, then the file won''t be overwritten. This has' + #13#10 +
' the effect of only processing files that don''t exist in the destination' + #13#10 +
' zip file or unzipping folder.';
cSkipIfNotExistingHint = 'SkipIfNotExisting property:' + #13#10 +
' Setting this property to True will cause only files that don''t already' + #13#10 +
' exist in the destination unzipping location (when unzipping) or the' + #13#10 +
' zip file (when zipping) to be skipped.';
cSkipIfOlderDateHint = 'SkipIfOlderDate property:' + #13#10 +
' When updating a file (in a zip while zipping, or on disk while unzipping),' + #13#10 +
' the file is skipped if the existing file''s ''Last modified date'' is greater than' + #13#10 +
' the file being zipped or unzipped.';
cSkipIfOlderVersionHint = 'SkipIfOlderVersion property:' + #13#10 +
' When updating a file (in a zip while zipping, or on disk while unzipping),' + #13#10 +
' the file is skipped if the existing file''s version resource value is greater' + #13#10 +
' than the file being zipped or unzipped.';
cZipFilenameSfxHint = 'ZipFilename property with Sfx:' + #13#10 +
' The filename of the zip file to work on. When creating or updating' + #13#10 +
' self-extracting zip files, you should enter an executable filename' + #13#10 +
' (use a .EXE extension).';
cSfxBinaryModuleHint = 'SfxBinaryModule property:' + #13#10 +
' This binary file will be prepended to the zip file, with configuration' + #13#10 +
' data if the binary is one of the Xceed Self-Extractor Module' + #13#10 +
' binaries. If you leave this field empty, a regular (non-sfx) zip file' + #13#10 +
' will be created.';
cSfxStringsHint = 'SfxStrings property array:' + #13#10 +
' This array contains all the strings displayed by the Xceed Self-Extractor' + #13#10 +
' Module binaries. For example, the ''xssTitle'' index contains the title' + #13#10 +
' displayed by all dialog boxes.';
cSfxMessagesHint = 'SfxMessages property array:' + #13#10 +
' This array contains all messages displayed by the Xceed Self-Extractor Module' + #13#10 +
' binaries. These messages often appear in their own dialog boxes. If a particular' + #13#10 +
' message is left empty, the dialog box won''t be display